namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0052 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.IcmInventoryStockTakingItem", "StatusParcel", c => c.Int(nullable: false));
            AddForeignKey("dbo.IcmInventoryStockTakingItem", "StatusParcel", "dbo.IcmMasLookUp", "LookUpId", cascadeDelete: true);
            CreateIndex("dbo.IcmInventoryStockTakingItem", "StatusParcel");
        }
        
        public override void Down()
        {
            DropIndex("dbo.IcmInventoryStockTakingItem", new[] { "StatusParcel" });
            DropForeignKey("dbo.IcmInventoryStockTakingItem", "StatusParcel", "dbo.IcmMasLookUp");
            DropColumn("dbo.IcmInventoryStockTakingItem", "StatusParcel");
        }
    }
}
